package com.example.demo.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Data
@IdClass(PermissPrimaryKey.class)
@Table(name = "permission")
@DynamicUpdate
public class Permission  {
    @Id
    @Column(name = "role_id", nullable = false)
    private Integer roleId;
    @Id
    @Column(name = "menu_id", nullable = false)
    private  Integer menuId;
}
